PgLayout.serialize

Serializes the @layout for later deserialization via [func@Pango.Layout.deserialize].

There are no guarantees about the format of the output across different versions of Pango and [func@Pango.Layout.deserialize] will reject data that it cannot parse.

The intended use of this function is testing, benchmarking and debugging. The format is not meant as a permanent storage format.

class PgLayout
serialize

Parameters

flags PangoLayoutSerializeFlags

PangoLayoutSerializeFlags

Return Value

Type: Bytes

a GBytes containing the serialized form of @layout

Meta

Since

1.50